import { DICITEM, ADDDICITEM, UPDATEDICITEM, DELDICITEM } from "./api";
import { METHOD, request } from "@/utils/request";

//字典项列表
export function list(params) {
  return request(DICITEM, METHOD.GET, params);
}
//新增字典项
export function add(params) {
  return request(ADDDICITEM, METHOD.POST, params);
}
//编辑字典项
export function update(params) {
  return request(UPDATEDICITEM, METHOD.POST, params);
}
//删除字典项
export function del(params) {
  return request(DELDICITEM, METHOD.POST, params);
}
